//https://v3.umijs.org/zh-CN/plugins/plugin-layout#扩展的路由配置
export default [
  { 
    path: '/', 
    component: '@/pages/index', 
    name: '首页',
    icon:'HomeOutlined',
  },
  { 
    path: '/dva', 
    component: '@/layouts/Index', 
    name: '数据管理',
    icon:'AccountBookOutlined',
    layout: false,
    routes: [
      {
        path: '/dva',
        component: '@/pages/dva',
        name: 'dva学习',
      },
    ],
  },
  {
    path: '/cate',
    name: '分类管理',
    icon:'AliwangwangOutlined',
    routes: [
      {
        path: '/cate/list',
        component: '@/pages/category/list',
        name: '分类列表',
      },
      {
        path: '/cate/pub',
        component: '@/pages/category/pub',
        name: '分类发布',
      },
    ],
  },
  {
    path: '/banner',
    name: '轮播管理',
    icon:'AccountBookOutlined',
    routes: [
      {
        path: '/banner/list',
        component: '@/pages/banner/list',
        name: '轮播列表',
      },
      {
        path: '/banner/pub',
        component: '@/pages/banner/pub',
        name: '轮播发布',
      },
      {
        path: '/banner/edit/:objectId',
        component: '@/pages/banner/edit',
        name: '编辑轮播列表',
        hideChildrenInMenu: true,
      },
    ],
  },
  {
    path: '/goods',
    name: '商品管理',
    icon:'ShoppingCartOutlined',
    routes: [
      {
        path: '/goods/list',
        component: '@/pages/goods/list',
        name: '商品列表',
      },
      {
        path: '/goods/pub',
        component: '@/pages/goods/pub',
        name: '商品发布',
      },
    ],
  },
  { path: '/ajax', component: '@/pages/ajax', name: '原生Ajax的学习',icon: 'OneToOneOutlined' },
  { path: '/mock', component: '@/pages/mock', name: 'lean cloud接口使用',icon: 'ApiOutlined' },
];
